package com.fowo.api.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fowo.api.common.annotaion.TitleField;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Schema(title = "系统文件")
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_file")
public class SysFile extends SysBase implements Serializable {

    @TitleField
    @Schema(title = "原文件名")
    private String filename;

    @Schema(title = "文件类型")
    private String mimeType;

    @Schema(title = "文件大小")
    private Long fileSize;

    @Schema(title = "存储类型")
    private String storageType;

    @Schema(title = "存储键名")
    private String storageKey;

    @Schema(title = "JSON 格式扩展数据")
    private String ext;

    @Schema(title = "缩略图")
    private byte[] thumbnail;
}
